<template>
  <div>
    <van-tabbar v-model="active">
      <van-tabbar-item to="/home"
        ><div class="iconfont icon-biaoqiankuozhan_shouye-116"></div>
        首页</van-tabbar-item
      >
      <van-tabbar-item to="/fen"
        ><div class="iconfont icon-liebiao"></div>
        分类</van-tabbar-item
      >
      <van-tabbar-item to="/gou"
        ><div class="iconfont icon-gouwuche"></div>
        购物车</van-tabbar-item
      >
      <van-tabbar-item to="/ge"
        ><div class="iconfont icon-zhanghao"></div>
        个人</van-tabbar-item
      >
    </van-tabbar>
  </div>
</template>
<script>
export default {
    data() {
        return {
            active:0,
        }
    }
};
</script>
<style  scoped>
.iconfont {
  width: 30px;
  height: 30px;
  margin-top: -5px;
  margin-bottom: 3px;
  margin-left: -1px;
  text-align: center;
  font-size: 20px;
}
.van-tabbar-item--active {
  color: red;
  background-color: #fff;
}
</style>